package com.allnas.springcloud.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * @author zhaojin
 */
@RefreshScope
@RestController
public class IndexController {

    @Value("${description:}")
    private String description;

    @GetMapping("config")
    public String config() {
        return description;
    }
}
